/*
 * @Author: 瞿旺兴 18774621495@163.com
 * @Date: 2022-05-18 14:37:18
 * @LastEditors: 瞿旺兴 18774621495@163.com
 * @LastEditTime: 2022-06-13 20:00:05
 * @FilePath: \nien-vue3-admin\src\api\finance\FinancialManagementTools.ts
 * @Description: 开票管理
 */
import request from '@/utils/request'
// ------------------------客户开票信息管理

/**
 * @description:查询列表集合
*/
export const getList = function (data) {
  return request({
    url: 'finance/ticketingManage/list',
    method: 'post',
    data,
  })
}
/**
 * @description:   开票信息导出
*/
export const ticketingManageExport = function (data) {
  return request({
    url: 'finance/ticketingManage/export',
    method: 'post',
    data,
  })
}
/**
 * @description:   获取开票信息详情
*/
export const getDetail = function (id) {
  return request({
    url: `finance/ticketingManage/${ id }`,
    method: 'get',
  })
}
/**
 * @description:     新增开票信息 
*/
export const addData = function (data) {
  return request({
    url: 'finance/ticketingManage/add',
    method: 'post',
    data,
  })
}
/**
 * @description:     修改开票信息 
*/
export const editData = function (data) {
  return request({
    url: 'finance/ticketingManage/edit',
    method: 'put',
    data,
  })
}
/**
 * @description:     删除开票信息 
*/
export const removeData = function (ids) {
  return request({
    url: `finance/ticketingManage/remove/${ ids }`,
    method: 'delete',
  })
}
/**
 * @description: 推送开票信息  
*/
export const pushBilling = function (data) {
  return request({
    url: 'finance/ticketingManage/pushBilling',
    method: 'post',
    data,
  })
}
/**
 * @description:     按钮开票  
*/
export const invoiceBilling = function (data) {
  return request({
    url: 'finance/ticketingManage/invoiceBilling',
    method: 'post',
    data,
  })
}
/**
 * @description:开票详情
*/
export const billingDetails = function (params) {
  return request({
    url: 'finance/ticketingManage/billingDetails',
    method: 'get',
    params,
  })
}
